layui.use(['jquery','layer','table','form','upload'],function(){
    var $ = layui.$,
        layer = layui.layer,
        form = layui.form,
        upload = layui.upload,
        table = layui.table;
    
   
    var id = GetQueryString("id");
 	$.post("/systemsetup/permissionsmanage/permissions/selectPermissionsById",{id:id},function(result){
 		$("#pid").val(result.data["pid"]);
 		$("#status").val(result.data["status"]);
 		$("#name").val(result.data["name"]);
 		$("#permissionValue").val(result.data["permissionValue"]);
 		$("#uri").val(result.data["uri"]);
 		$("#icon").val(result.data["icon"]);
 		$("#orders").val(result.data["orders"]);
 		$("#type").val(result.data["type"]);
 		$("#permissionId").val(result.data["permissionId"]);
 	});
 	
 	
 	form.on('submit(PermissionDetail)', function(data){
 		parent.layer.closeAll();
 		return false;
 	});
    
    
});